package com.zuipin.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zuipin.entity.BaseDictionary;
import com.zuipin.mapper.BaseDictionaryMapper;
import com.zuipin.service.IBaseDictionaryService;
import com.zuipin.util.Pagination;

/**
 * 字典服务实现
 * 
 * @ClassName: BaseDictionarySer5viceImpl
 * @Description: TODO
 * @author  robot
 * @date 2017年04月247日 16:56:13
 */
@Service
public class BaseDictionaryServiceImpl implements IBaseDictionaryService {
	
	@Resource
	private BaseDictionaryMapper baseDictionaryMapper;
	
	@Override
	public BaseDictionary findById( Long id) {
		return baseDictionaryMapper.findById(id);
	}
	
	@Override
	public void insert(BaseDictionary baseDictionary) {
		baseDictionaryMapper.insert(baseDictionary);
	}
	
	@Override
	public void update(BaseDictionary baseDictionary) {
		baseDictionaryMapper.update(baseDictionary);
	}
	
	@Override
	public void delete( Long id) {
		baseDictionaryMapper.delete(id);
		
	}
	
	@Override
	public List<BaseDictionary> seachBaseDictionary(BaseDictionary baseDictionary, Pagination page) {
		return baseDictionaryMapper.seachBaseDictionary(baseDictionary, page);
	}
	
}
